<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <head th:include="views/public"/>
</head>
<body>
<div id="vm" class="layui-content">
    <div style="margin-left: 1%;padding-top: 1%">
        <el-form :model="form" ref="form1" :inline="true" label-width="68px">
            <el-form-item label="访问名" prop="visitName">
                <el-input   placeholder="请输入访问名" v-model="form.visitName"  clearable size="small" class="search-input" @keyup.enter.native="search"/>
            </el-form-item>

            <el-form-item label="访问IP" prop="visitIp">
                <el-input   placeholder="ip" v-model="form.visitIp"  clearable size="small" class="search-input" @keyup.enter.native="search"/>
            </el-form-item>

            <el-form-item>
                <el-button type="primary" icon="el-icon-search" size="mini" @click="search">搜索</el-button>
                <el-button icon="el-icon-refresh" size="mini" @click="reset('form1')">重置</el-button>
            </el-form-item>
        </el-form>
    </div>
    <template>
        <el-table  ref="multipleTable" :data="tableData" tooltip-effect="dark" style="width: 98%;margin-left: 1%" @selection-change="selectionChange">
            <el-table-column type="selection" width="55"> </el-table-column>
            <el-table-column prop="visitName" label="访问用户"> </el-table-column>
            <el-table-column prop="visitIp" label="访问IP" > </el-table-column>
            <el-table-column prop="visitAddr" label="访问位置"> </el-table-column>
            <el-table-column prop="visitBrowser" label="浏览器"> </el-table-column>
            <el-table-column prop="visitOs" label="操作系统"> </el-table-column>
            <el-table-column prop="visitTime" label="访问时间"> </el-table-column>
            <!--<el-table-column fixed="right" label="操作" width="100">
                <template slot-scope="scope">
                    <el-button type="text" size="small" @click="edit(scope.$index, scope.row)">编辑</el-button>
                    <el-button type="text" size="small" @click="remove(scope.row)">删除</el-button>
                </template>
            </el-table-column>-->
        </el-table>
    </template>
    <!--page-->
    <div class="block" style="padding-top: 1%">
        <el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="form.page"
                       :page-sizes="[10, 30, 50, 100, 300]" background :page-size="form.limit" layout="total, sizes, prev, pager, next, jumper"
                       :total="count">
        </el-pagination>
    </div>
</div>
<script th:src="@{/assets/js/logs/visit.js}"></script>
</body>

</html>